<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment("用户名");
            // $table->string('email')->unique();
            $table->string('password')->comment("密码");
            $table->string('phone')->comment("电话")->unique();
            $table->string('headimg')->comment("头像");
            $table->integer('lesson_all_num')->comment("所有课次");
            $table->integer('lesson_left_num')->comment("已上课次");
            $table->integer('lesson_ea_num')->comment("欧美课次");
            $table->integer('lesson_ph_num')->comment("菲律宾课次");
            $table->integer('leave_num')->comment("请假次数");
            $table->integer('task_num')->comment("完成任务次数");
            $table->integer('score_num')->comment("学习币");
            $table->integer('hour_num')->comment("累计说英语");

            // $table->rememberToken();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('users');
    }
}
